import service from '@/utils/request'

// @Tags IdCard
// @Summary 创建IdCard
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IdCard true "创建IdCard"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /idCard/createIdCard [post]
export const createIdCard = (data) => {
     return service({
         url: "/idCard/createIdCard",
         method: 'post',
         data
     })
 }


// @Tags IdCard
// @Summary 删除IdCard
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IdCard true "删除IdCard"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /idCard/deleteIdCard [delete]
 export const deleteIdCard = (data) => {
     return service({
         url: "/idCard/deleteIdCard",
         method: 'delete',
         data
     })
 }

// @Tags IdCard
// @Summary 删除IdCard
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除IdCard"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /idCard/deleteIdCard [delete]
 export const deleteIdCardByIds = (data) => {
     return service({
         url: "/idCard/deleteIdCardByIds",
         method: 'delete',
         data
     })
 }

// @Tags IdCard
// @Summary 更新IdCard
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IdCard true "更新IdCard"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /idCard/updateIdCard [put]
 export const updateIdCard = (data) => {
     return service({
         url: "/idCard/updateIdCard",
         method: 'put',
         data
     })
 }


// @Tags IdCard
// @Summary 用id查询IdCard
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IdCard true "用id查询IdCard"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /idCard/findIdCard [get]
 export const findIdCard = (params) => {
     return service({
         url: "/idCard/findIdCard",
         method: 'get',
         params
     })
 }


// @Tags IdCard
// @Summary 分页获取IdCard列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取IdCard列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /idCard/getIdCardList [get]
 export const getIdCardList = (params) => {
     return service({
         url: "/idCard/getIdCardList",
         method: 'get',
         params
     })
 }